package cn.iocoder.yudao.module.system.controller.admin.user.vo.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(description = "管理后台 - 用户同步 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserSyncRespVO {

    @Schema(description = "状态码", example = "0")
    private String code;

    @Schema(description = "响应消息", example = "同步成功")
    private String msg;

    public static UserSyncRespVO success() {
        return new UserSyncRespVO("0", "同步成功");
    }

    public static UserSyncRespVO fail(String message) {
        return new UserSyncRespVO("-1", message);
    }
}